home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4277 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.9 KB  |  51 lines

  1. Path: oreig.uji.es!ii202
  2. From: ii202@rossegat.uji.es (Jorge Acereda Macia)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ChangeScreenBuffer()
  5. Date: 26 Feb 1996 19:58:50 GMT
  6. Organization: Universitat Jaume I. Castell≤ de la Plana. Spain
  7. Message-ID: <4gt3dq$6fg@oreig.uji.es>
  8. References: <4gl1e7$r6s@oreig.uji.es> <1996Feb24.154556.15537@imada.ou.dk>
  9. NNTP-Posting-Host: @rossegat.uji.es
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Bjorn Reese (breese@imada.ou.dk) wrote:
  13. > Jorge Acereda Macia (ii202@rossegat.uji.es) wrote:
  14.  
  15. > > Is this busy-waiting?
  16. > >
  17. > >   while(NULL==ChangeScreenBuffer(DBScreen, Bitmap[CurrBuf])) ;
  18.  
  19. > Yes.
  20.  
  21. > > How can I handle this? Doing WaitTOF() each time ChangeScreenBuffer
  22. > > fails?
  23.  
  24. > The official way to handle it is to wait for the safe signals (there's
  25.  
  26. Yes, I'm assuming I've received the signal on the SafePort. I mean
  27. after receiving the safe signal. ChangeScreenBuffer() can fail if,
  28. for example, the user is pressing the screens depth gadget.
  29.  
  30. Anyway, if there's no intuition rendering, there shouldn't be
  31. problems if I ignore ChangeScreenBuffer's return code...
  32. right?
  33.  
  34. There's is another issue... Pressing the depth gadget will freeze
  35. the game/demo until you release it. Any solution?
  36.  
  37. > some example in NDK called doublebuffer.c, I believe) However, this
  38. > can give some strange results under some circumstances, so I prefer
  39. > WaitTOF().
  40.  
  41. I had no problem with it... What problems do you refer to?
  42.  
  43. Greets,
  44. --
  45.  ---------------------------- --------------------------------------------
  46. |       Jorge Acereda        |      Dream the same thing everynight       |
  47. |   ii202@rossegat.uji.es    |       I see our freedom in my sight        |
  48. |       Intel Outside        |     No locked doors, no windows barred     |
  49. |        Amiga Rules         |   No things to make my brain seem scarred  |
  50.  ---------------------------- --------------------------------------------
  51.